import utils


def add_head_up_ip(ip):
    utils.add_ip("/collector_slave/config/ips/ips_head_up.conf", ip)


def delete_head_up_ip(ip):
    utils.delete_ip("/collector_slave/config/ips/ips_head_up.conf", ip)


def add_head_down_ip(ip):
    utils.add_ip("/collector_slave/config/ips/ips_head_down.conf", ip)


def delete_head_down_ip(ip):
    utils.delete_ip("/collector_slave/config/ips/ips_head_down.conf", ip)


def add_master_ip(ip):
    utils.add_ip("/collector_slave/config/ips/ips_master.conf", ip)


def add_slave_ip(ip):
    utils.add_ip("/collector_slave/config/ips/ips_slave.conf", ip)


def delete_slave_ip(ip):
    utils.delete_ip("/collector_slave/config/ips/ips_slave.conf", ip)
